package com.jlastu.androiduidemo.views;

import android.content.Intent;
import android.view.View;
import android.widget.RelativeLayout;

import com.jlastu.androiduidemo.R;
import com.jlastu.androiduidemo.base.BaseFragment;

public class MineFragment extends BaseFragment implements View.OnClickListener {

   private RelativeLayout mSettingLayout;
   @Override
   protected int getLayoutId() {
      return R.layout.fragment_mine;
   }

   @Override
   protected void initView() {
      mSettingLayout = mView.findViewById(R.id.settingView);
   }

   @Override
   protected void initListener() {
      mSettingLayout.setOnClickListener(this);
   }

   @Override
   public void onClick(View v) {
      int id = v.getId();
      if (id == R.id.settingView) {
         Intent intent = new Intent(mContext, SettingsActivity.class);
         startActivity(intent);
      }
   }
}
